local M = {}

M.get_default_mappings = function(helper,actions,fb_actions)
    return {
        ["i"] = {
            ["<Tab>"] = function(prompt_bufnr)
                actions.move_selection_next(prompt_bufnr)
            end,
            ["<S-Tab>"] = actions.move_selection_previous,
            ["<M-y>"] = helper.copy_path,
            ["<M-a>"] = fb_actions.create,
            ["<M-d>"] = fb_actions.remove,
            ["<M-r>"] = fb_actions.rename,
            ["<M-c>"] = function() end,--M-c:异常,经常会变成create
            ["<C-c>"] = function(prompt_bufnr)
                fb_actions.copy(prompt_bufnr)
            end,
            ["<M-x>"] = fb_actions.goto_parent_dir,
            ["<C-x>"] = function() end,--fb_actions.goto_parent_dir,
            ["<C-f>"] = function() end,--without file/folder toggle
            ["<C-a>"] = function() end,
            ["<C-d>"] = function() end,
            ["<C-r>"] = function() end,
            --["<C-c>"] = function() end,
        }, -- ['i'j
        ["n"] = {
            -- use tab instead
            ["<Tab>"] = actions.move_selection_next,
            ["<S-Tab>"] = actions.move_selection_previous,
            ["j"] = function() end,
            ["k"] = function() end,
            ["t"] = function() end,
            ["g"] = function() end,
            ["y"] = function() end,
            ["c"] = function() end,
            ["w"] = function() end,
            ["e"] = function() end,
            ["g"] = function() end,
            ["d"] = function() end,
            ["r"] = function() end,
            ["m"] = function() end,
            ["h"] = function() end,
            ["f"] = function() end,
            ["<C-a>"] = function() end,
            ["<C-d>"] = function() end,
            ["<C-r>"] = function() end,
            --["<C-c>"] = function() end,
            ["o"] = function(prompt_bufnr)
                actions.select_default(prompt_bufnr)
            end,
            ["y"] = helper.copy_path,
            ["I"] = fb_actions.toggle_hidden,
            ["x"] = fb_actions.goto_parent_dir,
            ["<M-a>"] = fb_actions.create,
            ["<M-d>"] = fb_actions.remove,
            ["<M-r>"] = fb_actions.rename,
            ["<M-c>"] = function() end,
            ["<C-c>"] = fb_actions.copy, --M-c:异常,经常会变成create
        } -- ['n']
    }
end

return M
-- EOP
